//
//  Student.m
//  Demo0006
//
//  Created by zTercel on 13-1-2.
//  Copyright (c) 2013年 zTercel. All rights reserved.
//

#import "Student.h"

@implementation Student

-(id) init: (const char*) name age: (char) age sex: (BOOL) sex
{
    self = [super init];
    if (self)
    {
        strcpy(_name, name);
        _age    = age;
        _sex    = sex;
    }
    
    return self;
}

-(void) print
{
    NSLog(@"\nStudent infomation: \n...name: %s\n...age : %d\n...sex : %s", _name, _age, (_sex == YES) ? "male" : "female");
}

@end
